package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Strategy;
import cn.wolfcode.wolf2w.domain.Travel;
import cn.wolfcode.wolf2w.query.TravelQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelService {
    void save(Travel travel);
    void update(Travel travel);
    void delete(String id);
    Travel get(String id);
    List<Travel> listAll();

    Page<Travel> query(TravelQuery qo);
    String saveOrUpdate(Travel travel);

    /**
     * 审核状态
     * @param id
     * @param state
     */
    void changeState(String id, int state);

    /**
     * 通过name查询对象
     * @param keyword
     * @return
     */
    List<Travel> findByDestName(String keyword);

}
